import { request } from 'umi';
export async function getDept(body, options) {
  return request('/api/myapp/department', {
    method: 'GET',
    data: body,
    ...(options || {}),
  });
}

export async function delDept(body, options) {
  console.log(body);
  return request(`/api/myapp/department?id=${body}`, {
    method: 'DELETE',
    data: body,
    ...(options || {}),
  });
}
export async function addDept(body, options) {
  console.log(body);
  return request(`/api/myapp/department`, {
    method: 'POST',
    data: body,
    ...(options || {}),
  });
}
